package com.smart4j.framework.aop.spring.aspect.introduction;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;
import org.springframework.stereotype.Component;

import com.smart4j.framework.aop.spring.introduction.Apology;

/**
 * description: Spring+AspectJ 基于注解 引入增强 introduction
 * @version v1.0
 * @author w
 * @date 2018年9月25日下午8:37:53
 */
@Aspect
@Component
public class IntroductionAspect {
	
	
	/**
	 * 针对目标类，进行引入增强---- 实现对类的增强
	 * value = 目标类 target 
	 * defaultImpl = 引入接口默认实现类
	 */
	@DeclareParents(value = "com.smart4j.framework.aop.spring.advisor.GreetingAdvisorImpl",defaultImpl=ApologyImpl.class)
	private Apology apology;
	
}
